package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Category;
import com.itheima.domain.Movies;

import java.util.List;
import java.util.Map;

public interface CategoryService {
    //分页查询
    PageInfo<Category> findByPage(Integer pageNum, Integer pageSize, String keyword);

    void save(Category category);

    Category findById(Integer id);

    void deleteById(Integer id);

    void deleteIds(Integer[] ids);

    Map<String, List<Movies>> findAllCategoryAndMovies();

    List<Category> findAll();
}
